<!doctype html>
<html lang="en">
    <head>
        <title>默认主题</title>
        <meta name="generator" content="PyTestReport 0.1.4"/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

        <!-- Bootstrap CSS -->
        <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
        <!-- Chart CSS -->
        <link href="https://cdn.bootcss.com/Chart.js/2.8.0-rc.1/Chart.min.css" rel="stylesheet">
        <style type="text/css" media="screen">
            
body        { font-family: Segoe UI,Roboto,Helvetica Neue,PingFang SC,Noto Sans,Noto Sans CJK SC,Microsoft YaHei,sans-serif; font-size: 80%;}
table       { font-size: 100%; }
#pre         { color: #888888; }
p           { margin: 20px 0; }
/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin: 10px;
}
.heading .attribute {
    margin-top: 1ex;
    margin-bottom: 0;
}

/* -- css div popup ------------------------------------------------------------------------ */
a.popup_link {
}
a.popup_link:hover {
    color: #0062cc;
}
.popup_window {
    display: none;
    position: relative;
    left: 0px;
    top: 0px;
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #F9F9F9;
    font-family: "Lucida Console", "Courier New", Courier, monospace;
    text-align: left;
    font-size: 8pt;
    width: 100%;
}

/* -- report ------------------------------------------------------------------------ */
tr {
    height: 30px;
    font-size: 12px;
    text-align: left;
}
#show_detail_line {
    margin-top: 3ex;
    margin-bottom: 1ex;
}
#result_table {
}
#header_row {
    font-weight: bold;
    color: #212529;
    background-color: #d0e9c6;
    font-size: 14px;
    height: 35px;
}
#result_table td {
    border: 1px solid #b9b4b4a1;
    padding: 2px;
    word-wrap: break-word;
}
.middle-col {
    border-left: 1px solid #d4cfcf8f;
    border-right: 1px solid #d4cfcf8f;
}
.total-area {
    width: 100%;
    height: 50%;
    text-align: center;
    padding: 15px;
}
.table { table-layout: fixed; }
#total_row  { font-weight: bold; }
.passClass  { background-color: #00ff3733; }
.failClass  { background-color: #eab2b73d; }
.errorClass { background-color: #a3c8ec2e; }
.skipClass { background-color: #40403f38; }
.passCase   { color: #28a745d9; }
.failCase   { color: #dc3535d9; font-weight: bold; }
.errorCase  { color: #ffa90cc9; font-weight: bold; }
.skipCase  { color: #40403f9e; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 0em; }
.table td, .table th {vertical-align: middle;}
/* -- ending ---------------------------------------------------------------------- */
#ending {
    min-height: 30px;
}
.github {
    height: 135px;
    width: 135px;
    top: 0;
    right: 0;
    position: absolute;
}
/* -- log的error字体红色 ---------------------------------------------------------------------- */
span.error, span.failed, span.xpassed, .error .col-result, .failed .col-result, .xpassed .col-result  {
	color: red;
}
span.skipped, span.xfailed, span.rerun, .skipped .col-result, .xfailed .col-result, .rerun .col-result {
	color: orange;
}

.ansi1 {
    font-weight: bold;
}

.ansi31 {
    color: #ff0000;
}

.ansi34 {
    color: #0849de;
}
        </style>

        <script src="https://cdn.bootcss.com/Chart.js/2.8.0-rc.1/Chart.min.js"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"></script>
    </head>
    <body>
        <div class="container-fluid">
            <div class="row">
                <div class="col-4">
                    <div class='heading'>
                        <h2>默认主题</h2>
                        
                            <p class='description'>默认主题描述</p>
                        
                        <div>
                            <p class='attribute'><strong>测试时间：</strong> 2019-05-12 23:07:49</p>
                            <p class='attribute'><strong>测试时长：</strong> 0:00:00.002000</p>
                            <p class='attribute'><strong>测试状态：</strong>
                                <span class="badge badge-success" style="background-color: rgb(92,184,92);padding: 4px 10px;">&nbsp;通过: 1&nbsp;</span>
                                <span class="badge badge-danger" style="background-color: rgb(217,83,79);padding: 4px 10px;">&nbsp;失败：0&nbsp;</span>
                                <span class="badge badge-primary" style="background-color: rgb(240,173,78);padding: 4px 10px;">&nbsp;错误：0&nbsp;</span>
                                <span class="badge badge-secondary" style="background-color: rgb(206,212,218);padding: 4px 10px;">&nbsp;跳过：0&nbsp;</span>
                            </p>
                        </div>
                    </div>
                </div>
                <div class="col-4 middle-col">
                    <div class="total-area">
                        <h1>1</h1>
                        <div>用例总数</div>
                    </div>
                    <div class="total-area">
                        <h1></h1>
                        <div>套件总数</div>
                    </div>
                </div>
                <div class="col-4">
                    <div style="width: 50%;">
                        <canvas id="chart-area" width="200" height="200"></canvas>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col">
                    <hr/>
                   <p id="show_detail_line">
                        <a href="javascript:showCase(0)" style="font-weight: bold; color:#212529; font-size: 14px;">测试结果：</a>
                        <a href="javascript:showCase(4)" class="badge badge-success" style="background-color: rgb(92,184,92);padding: 4px 10px;">通过</a>
                        <a href="javascript:showCase(1)" class="badge badge-danger" style="background-color: rgb(217,83,79);padding: 4px 10px;">失败</a>
                        <a href="javascript:showCase(2)" class="badge badge-primary" style="background-color: rgb(240,173,78);padding: 4px 10px;">错误</a>
                        <a href="javascript:showCase(3)" class="badge badge-secondary" style="background-color: rgb(206,212,218);padding: 4px 10px;">跳过</a>
                        <!--<a href="javascript:showCase(5)" class="badge badge-info" style="background-color: rgb(91,192,222);padding: 4px 10px;">全部</a>-->
                   </p>
                </div>
            </div>

            <div class="row">
                <div class="col">
                    <table id='result_table' class="table">
                        <colgroup>
                            <col align='left' />
                            <col align='right' />
                            <col align='right' />
                            <col align='right' />
                            <col align='right' />
                            <col align='right' />
                            <col align='right' />
                        </colgroup>
                        <tr id='header_row'>
                            <td style="width: 33.333333%;">测试套件/用例</td>
                            <td>用例总数</td>
                            <td>通过</td>
                            <td>失败</td>
                            <td>错误</td>
                            <td>跳过</td>
                            <td>查看</td>
                        </tr>
                        
                        <tr class='passClass' type="suite" id="c1">
                            <td>utDemo.UTestPass</td>
                            <td>1</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td style="text-align: center;">
                                <a href="javascript:showAllClassDetail('c1',1)" id='c1'>查看详情</a>
                            </td>
                        </tr>
                            
                                
                                    <tr id="pt1.1" cid="c1" class='hiddenRow' type="case">
                                        <td class='passCase'><div class='testcase'>testTrue</div></td>
                                        <td class='passCase' colspan='6' align='center'>PASS</td>
                                    </tr>
                                
                            
                        
                        <tr id='total_row'>
                            <td>总计</td>
                            <td>1</td>
                            <td>1</td>
                            <td>0</td>
                            <td>0</td>
                            <td>0</td>
                            <td>&nbsp;</td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="row">
                <div class="col">
                    <div class="container" style="position: fixed;right: 5px;bottom: 10px;cursor: pointer;">
                        <div class="float-right"><a class="gotop d-none d-sm-block" href="javascript:scroll(0,0)">
                            <svg class="bi bi-capslock" width="2em" height="2em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
                                <path fill-rule="evenodd" d="M7.27 1.047a1 1 0 0 1 1.46 0l6.345 6.77c.6.638.146 1.683-.73 1.683H11.5v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1H1.654C.78 9.5.326 8.455.924 7.816L7.27 1.047zM14.346 8.5L8 1.731 1.654 8.5H4.5a1 1 0 0 1 1 1v1h5v-1a1 1 0 0 1 1-1h2.846zm-9.846 5a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-5a1 1 0 0 1-1-1v-1zm6 0h-5v1h5v-1z"></path>
                            </svg></a>
                        </div>
                    </div>
                </div>
            </div>
            <!-- Optional JavaScript -->
            <!-- jQuery first, then Popper.js, then Bootstrap JS -->
            <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
            <script src="https://cdn.bootcss.com/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
            <script src="https://cdn.bootcss.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
            <script language="javascript" type="text/javascript">
                
output_list = Array();
/* level - 0:Summary; 1:Failed; 2:error; 3:skip; 4:pass; 5:all*/

function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;

        if (level === 0 && tr.getAttribute('type') === 'case') {
            tr.className = '';
        } else if (level === 1) {
            if (id.indexOf('testfail') === 0) {
                tr.className = '';
            } else if (tr.getAttribute('type') === 'case') {
                tr.className = 'hiddenRow';
            }
        } else if (level === 2) {
            if (id.indexOf('testerror') === 0) {
                tr.className = '';
            } else if (tr.getAttribute('type') === 'case') {
                tr.className = 'hiddenRow';
            }
        } else if (level === 3) {
            if (id.indexOf('testskip') === 0) {
                tr.className = '';
            } else if (tr.getAttribute('type') === 'case') {
                tr.className = 'hiddenRow';
            }
        } else if (level === 4 ) {
             if (id.indexOf('testpass') === 0) {
                tr.className = '';
            } else if (tr.getAttribute('type') === 'case') {
                tr.className = 'hiddenRow';
            }
        } else if (tr.getAttribute('type') === 'case') {
            tr.className = '';
        }
    }
}
function showAllClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    divs = document.getElementsByTagName("div");
    if (document.getElementById(cid).innerText.substr(0,4) == '查看详情') {
        document.getElementById(cid).innerText = "关闭详情"
        for (var a = 0; a < divs.length; a++){
            div = divs[a];
            id = div.id;
            if (id != null && typeof(id)!="undefined" ){
                if (id.substr(0,3) == 'div') {
                    document.getElementById(id).style.display = 'block';
                }
            }
        }
    }
    else {
        document.getElementById(cid).innerText = "查看详情"
        for (var a = 0; a < divs.length; a++){
            div = divs[a];
            id = div.id;
            if (id != null && typeof(id)!="undefined" ){
                if (id.substr(0,3) == 'div') {
                    document.getElementById(id).style.display = 'none';
                }
            }
        }
    }
}

/* 全部的用例展开折叠div_
function showAllClassDetail(status, status) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        tr_id = tr.id;
        className = tr.className
        if ((className == '' || typeof(className)=="undefined")&& tr_id.substr(0,4) == 'test'){
             var tds = tr.getElementsByTagName('td');
             div = tds[1].getElementsByClassName('popup_window');
             td_id = div[0].id
             if (td_id.indexOf(tr_id)){
                 if (status == "1"){
                    document.getElementById(td_id).style.display = 'none';
                 }
                 else if ((document.getElementById(td_id).style.display)!="block"){
                    document.getElementById(td_id).style.display = 'block';
                 }
                 else {
                    document.getElementById(td_id).style.display = 'none';
                 }
             }
        }
    }
}
*/
/* 全部的用例展开折叠,已作废*/
function showAllClassDetail(cid, count) {
    var toHide = showClassDetail(cid, count);
    divs = document.getElementsByTagName("div");
    if (toHide === 0) {
        for (var a = 0; a < divs.length; a++){
            div = divs[a];
            id = div.id;
            if (id != null && typeof(id)!="undefined" ){
                if (id.substr(0,3) == 'div') {
                    document.getElementById(id).style.display = 'block';
                }
            }
        }
    }
    else {
        for (var a = 0; a < divs.length; a++){
            div = divs[a];
            id = div.id;
            if (id != null && typeof(id)!="undefined" ){
                if (id.substr(0,3) == 'div') {
                    document.getElementById(id).style.display = 'none';
                }
            }
        }
    }
}

function showClassDetail(cid, count) {
    var tr_list = document.querySelectorAll('tr[cid='+cid+']');
    var toHide = 1;

    for (var i = 0; i < count; i++) {
        if (tr_list[i].className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        if (toHide) {
            tr_list[i].className = 'hiddenRow';
        } else {
            tr_list[i].className = '';
        }
    }
    return toHide
}

function showTestDetail(div_id){
    var details_div = document.getElementById(div_id);
    var displayState = details_div.style.display;
    if (displayState !== 'block' ) {
        details_div.style.display = 'block';
    } else {
        details_div.style.display = 'none';
    }
}
function html_escape(s) {
    s = s.replace(/&/g,'&amp;');
    s = s.replace(/</g,'&lt;');
    s = s.replace(/>/g,'&gt;');
    return s;
}



                (function() {
                    window.chartColors = {
                        red: 'rgb(217,83,79)',
                        orange: 'rgb(255, 159, 64)',
                        yellow: 'rgb(255, 205, 86)',
                        green: 'rgb(92,184,92)',
                        blue: 'rgb(240,173,78)',
                        purple: 'rgb(153, 102, 255)',
                        grey: 'rgb(206,212,218)'
                    };
                    var config = {
                        type: 'doughnut',
                        data: {
                            datasets: [{
                                data: [
                                    1,
                                    0,
                                    0,
                                    0,
                                ],
                                backgroundColor: [
                                    window.chartColors.green,
                                    window.chartColors.red,
                                    window.chartColors.blue,
                                    window.chartColors.grey
                                ],
                                hoverBackgroundColor: [
                                    window.chartColors.green,
                                    window.chartColors.red,
                                    window.chartColors.blue,
                                    window.chartColors.grey
                                ],
                                label: 'Dataset 1'
                            }],
                            labels: [
                                '通过',
                                '失败',
                                '错误',
                                '跳过',
                            ]
                        },
                        options: {
                            responsive: true,
                            legend: {
                                position: 'top',
                            },
                            title: {
                                display: true,
                                text: '测试结果占比'
                            },
                            animation: {
                                animateScale: true,
                                animateRotate: true
                            }
                        }
                    };
                    window.onload = function() {
                        var ctx = document.getElementById('chart-area').getContext('2d');
                        window.myDoughnut = new Chart(ctx, config);
                    };
                })();
            </script>
        </div>
    </body>
</html>